package com.hjduan.spring.cloud.ribbon.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import com.hjduan.spring.cloud.ribbon.service.RibbonHelloWordService;

/**
 * 
 * 
 *     作者：     段浩杰              2017年7月25日
 */
@RestController
public class RibbonHelloWordController {
	@Autowired
	private RibbonHelloWordService ribbonHelloWordService;

	@GetMapping(value = "/hi/{name}")
	public String ribbonHelloWord(@PathVariable String name) {
		return ribbonHelloWordService.ribbonHelloWordService(name);
	}

}
